package com.infindo.appcreate.zzyj.entity;

import static javax.persistence.GenerationType.SEQUENCE;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "zzyj_expert_project", schema = "public")
public class ExpertProject implements java.io.Serializable {

    private static final long serialVersionUID = -2671929235195624804L;
    private Long id;
    private String expertCode;
    private String projectCode;
    private Integer type;//0 支持的; 1 发起的
    
    public ExpertProject(){
        
    }
            
    
    public ExpertProject(String expertCode, String projectCode, Integer type){
        super();
        this.expertCode = expertCode;
        this.projectCode = projectCode;
        this.type = type;
    }

	@SequenceGenerator(name = "generator", sequenceName = "seq_zzyj_expert_project",allocationSize=1)
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "expert_code")
    public String getExpertCode() {
        return expertCode;
    }
    public void setExpertCode(String expertCode) {
        this.expertCode = expertCode;
    }
    
    @Column(name = "project_code")
    public String getProjectCode() {
        return projectCode;
    }
    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }
    
    @Column(name = "type")
    public Integer getType() {
        return type;
    }
    public void setType(Integer type) {
        this.type = type;
    }
	
}
